/*
 *自增自减操作符
 */

#include<stdio.h>

int num3 = 10;
int main() {
	int num = 10;
	num++;
	printf("num=%d\n", num);
	--num;
	printf("num=%d\n", num);
	int num1 = ++num;
	printf("num=%d,num1=%d\n",num, num1);
	num = 10;
	int num2 = num++;
	printf("num=%d,num2=%d\n",num, num2);
	num = 10;
	num1 = num++ + 1;
	printf("num1=%d\n",num1);
	num = 10;
	num1 = num++ + ++num;
	printf("num=%d,num1=%d\n", num, num1);
	num1 = num3++ + ++num3;
	printf("num3=%d,num1=%d\n", num3, num1);//结果不确定,换个电脑就坑爹了

	return 0;
}
